package a.d.b;

public class q
{
  protected r a;
  private x c;
  private x d;
  private x e;
  protected double g;
  protected double h;
  protected double i;
  private int j;
  public static int k;
  
  public q(x paramx1, x paramx2, x paramx3, r paramr)
  {
    this.c = paramx1;
    this.d = paramx2;
    this.e = paramx3;
    this.a = paramr;
    this.g = this.c.e();
    this.h = this.d.e();
    this.i = this.e.e();
    this.j = ((int)(this.g + this.h + this.i));
  }
  
  public q(x paramx1, x paramx2, x paramx3)
  {
    this(paramx1, paramx2, paramx3, f.c());
  }
  
  public q(d paramd1, d paramd2)
  {
    this(paramd1, paramd2, f.c());
  }
  
  public q(d paramd1, d paramd2, r paramr)
  {
    this(paramd2.a().c(paramd1.c()).b(paramd1.a().c(paramd2.c())), paramd2.b().c(paramd1.c()).b(paramd1.b().c(paramd2.c())), paramd1.c().c(paramd2.c()), paramr);
  }
  
  public x a()
  {
    return this.c;
  }
  
  public x b()
  {
    return this.d;
  }
  
  public x c()
  {
    return this.e;
  }
  
  public int a(q paramq)
  {
    x localx1 = this.c.c(paramq.a());
    x localx2 = this.d.c(paramq.b());
    return localx1.a(localx2).d();
  }
  
  public double d()
  {
    return Math.sqrt(this.g * this.g + this.h * this.h) / this.i;
  }
  
  public double c(q paramq)
  {
    return (this.g * paramq.g + this.h * paramq.h) / (this.i * paramq.i);
  }
  
  public double d(q paramq)
  {
    double d1 = Math.acos((this.g * paramq.g + this.h * paramq.h) / (Math.sqrt(this.g * this.g + this.h * this.h) * Math.sqrt(paramq.g * paramq.g + paramq.h * paramq.h)));
    if (!e.b) {
      if (this.g * paramq.h + this.h * paramq.g > 0.0D) {
        d1 = 6.283185307179586D - d1;
      }
    }
    return d1;
  }
  
  public final void e()
  {
    x localx = this.c.e(this.d);
    localx = localx.e(this.e);
    this.c = this.c.d(localx);
    this.d = this.d.d(localx);
    this.e = this.e.d(localx);
    this.g = this.c.e();
    this.h = this.d.e();
    this.i = this.e.e();
  }
  
  public boolean equals(Object paramObject)
  {
    boolean bool = e.b;
    if (!bool) {
      if (this == paramObject) {
        return true;
      }
    }
    if (!bool) {
      if (!(paramObject instanceof q)) {
        return false;
      }
    }
    q localq = (q)paramObject;
    x localx1 = this.c.c(localq.c()).b(localq.a().c(this.e));
    x localx2 = this.d.c(localq.c()).b(localq.b().c(this.e));
    if ((bool) || (localx1.d() == 0)) {
      if (bool) {}
    }
    return localx2.d() == 0;
  }
  
  public int hashCode()
  {
    return this.j;
  }
  
  public String toString()
  {
    return "(" + this.c + "," + this.d + "," + this.e + ")";
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.d.b.q
 * JD-Core Version:    0.7.0.1
 */